From the Firehose

p7zip

Installation

Install the p7zip package.

The command to run the program is the following:

$ 7z

Examples

Warning: Do not use 7z format for backup purposes, because it does not save owner/group of files. See 7z(1) § Backup and limitations for more details.

Add file/directory to the archive (or create a new one):

$ 7z a archive_name file_name

Also it is possible to set password with flag -p and hide structure of the archive with flag -mhe=on:

$ 7z a archive_name file_name -p -mhe=on

Update existing files in the archive or add new ones:

$ 7z u archive_name file_name

List the content of an archive:

$ 7z l archive_name

Extract all files from an archive to the current directory without using directory names:

$ 7z e archive_name

Extract with full paths:

$ 7z x archive_name

Extract into a new directory:

$ 7z x -ofolder_name archive_name

Check integrity of the archive:

$ 7z t archive_name

https://wiki.archlinux.org/title/P7zip

Category: Linux | Comments: 0

Comments: 0

About

Customize this section to tell your visitors a little bit about your publication, writers, content, or something else entirely. Totally up to you.